import { defineOverridesPreferences } from '@vben/preferences';

/**
 * @description 项目配置文件
 * 只需要覆盖项目中的一部分配置，不需要的配置不用覆盖，会自动使用默认配置
 */
export const overridesPreferences = defineOverridesPreferences({
  // overrides
  app: {
    name: import.meta.env.VITE_APP_TITLE,
    accessMode: 'frontend', // 'frontend'静态路由 | 'backend'动态路由,
    enableRefreshToken: true,
    enablePreferences: false,
  },
  widget: {
    languageToggle: false,
    notification: false,
    themeToggle: false,
  },
  logo: {
    source: 'https://wtplug.oss-cn-hangzhou.aliyuncs.com/webimages/logo192.png',
  },
  theme: {
    builtinType: 'custom',
    colorPrimary: 'hsl(25 98% 49%)',
    mode: 'light',
    radius: '1',
    semiDarkHeader: false,
    semiDarkSidebar: false,
  },
  copyright: {
    companyName: '抖羚羊',
    companySiteLink: 'https://doulingyang.cn',
    date: '2024',
    enable: true,
    icp: '浙ICP备2022033280号-4',
    icpLink: 'https://beian.miit.gov.cn/#/Integrated/recordQuery',
  },
});
